package com.flute.framework;

import com.flute.framework.exception.ConfigurationParseException;
import com.flute.framework.index.TimerIndexer;

public class RebuildIndexMain {
	public static void main(String[] args) throws ConfigurationParseException {
		if (args.length > 0) {
			for (int i = 0; i < args.length; i++) {
				TimerIndexer indexer = Flute.getInstance().getIndexer(args[i]);
				if (indexer != null) {
					indexer.startRebuild();
				} else {
					System.err.println("找不到索引,索引名字是" + args[i]);
				}
			}
		}
	}
}
